package xuexi;

class xinxi{
    private String guojia;
    private String shengfen;
    private  String city;
    private  String jiedao;
    private  String youzhen;
    public xinxi(){}
    public xinxi(String guojia,String shengfen, String city,String jiedao,String youzhen){
        this.guojia=guojia;
        this.shengfen=shengfen;
        this.city=city;
        this.jiedao=jiedao;
        this.youzhen=youzhen;

    }
    public String getInfo(){
        return "完整地址:"+this.guojia+this.shengfen+this.city+this.jiedao+this.youzhen;
    }
    public String getGuojia() {
        return guojia;
    }

    public void setGuojia(String guojia) {
        this.guojia = guojia;
    }

    public String getShengfen() {
        return shengfen;
    }

    public void setShengfen(String shengfen) {
        this.shengfen = shengfen;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getJiedao() {
        return jiedao;
    }

    public void setJiedao(String jiedao) {
        this.jiedao = jiedao;
    }

    public String getYouzhen() {
        return youzhen;
    }

    public void setYouzhen(String youzhen) {
        this.youzhen = youzhen;
    }
}

public class dizi {
    public  static void main(String[] args){
        System.out.println( new xinxi("中国","广东","茂名","化州","525138").getInfo());
    }
}
